package com.radiant.config;

import java.io.IOException;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.radiant.exceptions.RadiantRuntimeException;

public class SimpleDBModule extends GuiceCommonModule {

	private static final Injector injector = Guice.createInjector(new SimpleDBModule());

	public static final Injector getInjector() {
		return injector;
	}
    
	@Override 
	protected void configure() {
		try {
			commonConfigure();
		} catch (IOException e) {
			throw new RadiantRuntimeException("IO Exception in configuring Guice module", e);
		}
	}
}
